<template>
    <el-main>
        <el-main class="ep-body">
            <!--<epl-top-bar showCompany companyType="COMPANY_AAB000_EXACT">-->
            <!--<ep-button size="small" name="打印"></ep-button>-->
            <!--<ep-button size="small" name="刷新"></ep-button>-->
            <!--</epl-top-bar>-->
            <!--<epl-CpInsureRegPanel mt="10" p="H" detail-path="/business/d100insiup/d71query/CpQueryAll"></epl-CpInsureRegPanel>-->

            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP"
                         :datas="{formData: form,panel: panel}" >
                <ep-button size="small" name="打印"></ep-button>
                <el-button size="small" @click="clear" >刷新</el-button>
            </epl-top-bar>
            <epl-userMessage idCount="13" dataType="company"  isCodeType isEdit="1"   :panel="panel">
            </epl-userMessage>

            <el-form :model="form" :rules="rules"  ref="form">
            <el-collapse v-model="activeNames" >
                <el-collapse-item  title="请输入单位基本信息" name="1">
                    <el-card class="ep-card">
                            <el-row >
                                <ep-input colspan="8" label="统一社会信用代码" name="bab010" :property="form.bab010"
                                          placeholder="请输入统一社会信用代码" p="R" isChange
                                          rules="this.$localRules.checkBAB010"
                                          :datas="{formData: form,tableData:tableData,panel: panel}"></ep-input>

                                <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069"
                                          placeholder="请输入单位名称" p="R"  isChange
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-select colspan="8" label="组织机构类型" name="aab138" :property="form.aab138"
                                           placeholder="请选择组织机构类型" p="E" codetype="AAB138"
                                           :datas="{formData:form}"></ep-select>
                                 <ep-date colspan="8" label="有效期限" name="aae035" :property="form.aab139" placeholder="请选择变更日期" 
                                p="E" :datas="{formData: form,tableData:tableData,panel: panel}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                            </el-row>
                            <el-row >
                                 <ep-input colspan="24" label="组织机构代码证颁发单位" name="aab140" :property="form.aab140"
                                          placeholder="组织机构代码证颁发单位" p="E" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-input colspan="8" label="法定代表人姓名" name="aab013" :property="form.aab013"
                                          p="R" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                                 <ep-input colspan="8" label="法定代表人公民身份号码" name="aab014" :property="form.aab014"
                                          p="R" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                                 <ep-input colspan="8" label="法定代表人联系电话" name="aae251" :property="form.aae251"
                                          p="R" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-input colspan="8" label="批准单位" name="aae048" :property="form.aae048"
                                          p="E" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                                <ep-select colspan="8" label="单位性质" name="aab019" :property="form.aab019"
                                            p="E" codetype="AAB019"
                                           :datas="{formData:form}"></ep-select>
                                <ep-date colspan="8" label="改制基准日" name="bac229" :property="form.bac229" 
                                p="E" :datas="{formData: form,tableData:tableData,panel: panel}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                               
                            </el-row>
                            <el-row >
                                <ep-select colspan="8" label="经费来源" name="aab113" :property="form.aab113"
                                            p="R" codetype="AAB113"
                                           :datas="{formData:form}"></ep-select>
                                <ep-input colspan="8" label="税号" name="aab030" :property="form.aab030"
                                          p="R" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                                <ep-input colspan="8" label="地税编码" name="bab030" :property="form.bab030"
                                          p="R" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>

                            </el-row>
                            <el-row >
                                 <ep-date colspan="8" label="批准成立日期" name="aae049" :property="form.aae049" 
                                p="R" :datas="{formData: form,tableData:tableData,panel: panel}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                                <ep-input colspan="8" label="批准成立文号" name="aae051" :property="form.aae051"
                                          p="E" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                                <ep-input colspan="8" label="编制人数" name="aab302" :property="form.aab302"
                                          p="E" 
                                          :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-input>
                            </el-row>
                            <el-row >
                                 <ep-select colspan="8" label="隶属关系" name="aab021" :property="form.aab021"
                                           p="E"  codetype="AAB021"
                                           :datas="{formData:form}" ></ep-select>
                                <ep-select colspan="8" label="所属行业" name="aab022" :property="form.aab022"
                                           p="E"  codetype="AAB022"
                                           :datas="{formData:form}" ></ep-select>

                            </el-row>
                            <el-row >
                                <ep-input colspan="8" label="经办人员所属部门" name="aab061" :property="form.aab061"
                                         p="E"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="经办人姓名" name="aae004" :property="form.aae004"
                                           p="R"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="经办人电话" name="aae005" :property="form.aae005"
                                           p="R" rules="this.$rules.telephone"
                                ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-input colspan="8" label="经办人手机号码" name="aac067" :property="form.aac067"
                                         p="E"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="经办人员所属部门负责人" name="aab062" :property="form.aab062"
                                         p="E"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="部门负责人联系电话" name="bae006" :property="form.bae006"
                                         p="E"
                                          :datas="{formData:form}"></ep-input>

                            </el-row>
                            <el-row >
                                    <ep-input colspan="8" label="邮政编码" rules="this.$rules.postcode" name="aae007" :property="form.aae007"
                                          p="E" ></ep-input>
                                    <ep-input colspan="8" label="电子邮箱" rules="this.$rules.isEmail" name="aae159" :property="form.aae159"
                                          p="E"
                                          :datas="{formData:form}" ></ep-input>
                                    <ep-input colspan="8" label="传真电话" name="aae387" :property="form.aae387"
                                           p="E"  rules="this.$rules.telephone"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                                                      <el-row :gutter="10">
                                <ep-select colspan="8" label="通讯地址" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="E"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="E" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="E" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="注册地址" name="bae007" :property="form.bae007"
                                            placeholder="请选择省" codetype="BAE007" p="E"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae008" :property="form.bae008"
                                            placeholder="请选择市" codetype="BAE008" p="E" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae009" :property="form.bae009" 
                                            placeholder="请选择区县" codetype="BAE009" p="E" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                            </el-row>


                            <el-row >
                                 <ep-select colspan="8" label="主管部门" name="aab023" :property="form.aab023"
                                           placeholder="请选择主管部门" p="E"  codetype="AAB023"
                                           :datas="{formData:form}" ></ep-select>

                            </el-row>
                            <el-row>
                                <ep-select colspan="8" label="经办人员证件类型" name="bac043" :property="form.bac043"
                                           p="R" codetype="AAC058"
                                           :datas="{formData:form}"></ep-select>
                                <ep-input colspan="16" label="经办人员证件号码" name="bac044" :property="form.bac044"
                                           p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                             <el-row :gutter="10">
                                 <ep-input colspan="16" label="备注" name="aae013" :property="form.aae013"
                                          p="E"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>         
                    </el-card>
                </el-collapse-item>
                <el-collapse-item title="请输入单位银行账号信息" name="2">
                    <el-card class="ep-card">
                            <el-row>
                                <ep-select colspan="8" label="银行行别" name="aaf200" :property="form.aaf200"
                                           placeholder="请选择银行行别" p="R" codetype="AAF200"
                                           :datas="{formData:form}"></ep-select>

                                <epl-search-bank colspan="8" label="开户行行号" name="aaf002" formName="formData" :property="form.aaf002" placeholder="请选择开户行行号"
                                                 p="R" :datas="{formData: form}" codetype="AAF200" bankName="aaf200" show></epl-search-bank>


                            </el-row>

                            <el-row>
                                <ep-input colspan="8" label="开户行名称" name="bac049" :property="form.bac049"
                                          placeholder="请输入开户行名称" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009"
                                          placeholder="请输入银行开户名" p="R"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010"
                                          placeholder="请输入银行账号" p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                       
                    </el-card>
                </el-collapse-item>
                <el-collapse-item title="单位参保信息" name="3">
                    <el-card class="ep-card">
                        <el-row>
                            <ep-date colspan="8" label="参保日期" name="aab050" :property="form.aab050" 
                                p="E" :datas="{formData: form,tableData:tableData,panel: panel}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                            <ep-select colspan="8" label="征收方式" name="aab033" :property="form.aab033"
                                           p="R" codetype="AAB033"
                                           :datas="{formData:form}"></ep-select>
                            <ep-select colspan="8" label="社保经办机构" name="aaz198" :property="form.aaz198"
                                           p="R" codetype="AAZ198"
                                           :datas="{formData:form}"></ep-select>  
                        </el-row>
                        <el-row>
                            <ep-select colspan="8" label="机关事业单位征缴规则" name="aaz289_jssy" :property="form.aaz289_jssy"
                                           p="R" codetype="AAZ289"
                                           :datas="{formData:form}"></ep-select>  
                        </el-row>
                        <el-row>
                            <ep-select colspan="8" label="职业年金征缴规则" name="aaz289_zynj" :property="form.aaz289_zynj"
                                           p="R" codetype="AAZ289"
                                           :datas="{formData:form}"></ep-select>

                        </el-row>
                    </el-card>
                </el-collapse-item>
            </el-collapse>
			</el-form>

        </el-main>
    </el-main>
</template>
<script src="../js/CpInsureRegJS.js"></script>
<style lang="less" scoped>

</style>
